<div class="estados view">
<h2><?php  __('Estado');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $estado['Estado']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pais'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($estado['Paises']['name'], array('controller'=> 'pais', 'action'=>'view', $estado['Pais']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $estado['Estado']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Estado', true), array('action'=>'edit', $estado['Estado']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Estado', true), array('action'=>'delete', $estado['Estado']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $estado['Estado']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Estados', true), array('action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Estado', true), array('action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('List Pais', true), array('controller'=> 'pais', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Pais', true), array('controller'=> 'pais', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('List Eventos', true), array('controller'=> 'eventos', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Evento', true), array('controller'=> 'eventos', 'action'=>'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Eventos');?></h3>
	<?php if (!empty($estado['Evento'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['name'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Descripcion');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['descripcion'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Institucion');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['institucion'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha Desde');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['fecha_desde'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha Hasta');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['fecha_hasta'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tipo Evento Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['tipo_evento_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pais Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['pais_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Estado Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['estado_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Direccion');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['direccion'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Personal Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $estado['Evento']['personal_id'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('Edit Evento', true), array('controller'=> 'eventos', 'action'=>'edit', $estado['Evento']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Eventos');?></h3>
	<?php if (!empty($estado['Evento'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Descripcion'); ?></th>
		<th><?php __('Institucion'); ?></th>
		<th><?php __('Fecha Desde'); ?></th>
		<th><?php __('Fecha Hasta'); ?></th>
		<th><?php __('Tipo Evento Id'); ?></th>
		<th><?php __('Pais Id'); ?></th>
		<th><?php __('Estado Id'); ?></th>
		<th><?php __('Direccion'); ?></th>
		<th><?php __('Personal Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($estado['Evento'] as $evento):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $evento['id'];?></td>
			<td><?php echo $evento['name'];?></td>
			<td><?php echo $evento['descripcion'];?></td>
			<td><?php echo $evento['institucion'];?></td>
			<td><?php echo $evento['fecha_desde'];?></td>
			<td><?php echo $evento['fecha_hasta'];?></td>
			<td><?php echo $evento['tipo_evento_id'];?></td>
			<td><?php echo $evento['pais_id'];?></td>
			<td><?php echo $evento['estado_id'];?></td>
			<td><?php echo $evento['direccion'];?></td>
			<td><?php echo $evento['personal_id'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller'=> 'eventos', 'action'=>'view', $evento['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller'=> 'eventos', 'action'=>'edit', $evento['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller'=> 'eventos', 'action'=>'delete', $evento['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $evento['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Evento', true), array('controller'=> 'eventos', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
